package day8.bank;

/**
 * @author oldliu
 * @since 1.0
 */
//银行账号
public class Account {
    private String name;
    private long money;

    public Account(String name, long money) {
        this.name = name;
        this.money = money;
    }
    //取钱
    public void withDraw(int m){
        money-=m;
    }
    //存钱
    public void deposit(int m){
        money+=m;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getMoney() {
        return money;
    }

    public void setMoney(long money) {
        this.money = money;
    }
}
